package com.freemalll.merchant.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.freemalll.merchant.common.AbstractBaseEntity;
import com.freemalll.merchant.common.CompareField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 商户银行卡信息表
 * </p>
 *
 * @author songshixiong
 * @since 2025-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mer_bank_card")
@Schema(description = "MerBankCard对象")
public class MerBankCard extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "card_id", type = IdType.ASSIGN_UUID)
    @CompareField(value = "card_id", skip = true)
    private String cardId;

    @Schema(description = "所属商户")
    @TableField("mer_id")
    @CompareField(value = "mer_id", skip = true)
    private String merId;

    @Schema(description = "收款偏好")
    @TableField("payment_preference")
    @CompareField("payment_preference")
    private String paymentPreference;

    @Schema(description = "卡类型")
    @TableField("card_type")
    @CompareField("card_type")
    private String cardType;

    @Schema(description = "账号")
    @TableField("card_no")
    @CompareField("card_no")
    private String cardNo;

    @Schema(description = "开户人")
    @TableField("card_account_name")
    @CompareField("card_account_name")
    private String cardAccountName;

    @Schema(description = "开户行名称")
    @TableField("card_bank_name")
    @CompareField("card_bank_name")
    private String cardBankName;

    @Schema(description = "联行号")
    @TableField("card_prcptcd")
    @CompareField("card_prcptcd")
    private String cardPrcptcd;

    @Schema(description = "开户行编码")
    @TableField("card_bank_code")
    @CompareField("card_bank_code")
    private String cardBankCode;

    @Schema(description = "开户支行名称")
    @TableField("card_brabank_name")
    @CompareField("card_brabank_name")
    private String cardBrabankName;

    @Schema(description = "银行卡所属省")
    @TableField("card_province")
    @CompareField("card_province")
    private String cardProvince;

    @Schema(description = "银行卡所属市")
    @TableField("card_city")
    @CompareField("card_city")
    private String cardCity;

    @Schema(description = "银行卡所属区")
    @TableField("card_country")
    @CompareField("card_country")
    private String cardCountry;

    @Schema(description = "银行卡所属地区详细地址")
    @TableField("card_address")
    @CompareField("card_address")
    private String cardAddress;

    @Schema(description = "启用状态")
    @TableField("card_status")
    @CompareField("card_status")
    private Boolean cardStatus;

}
